package com.baizhi.feign;

import com.baizhi.feign.rollback.GroupFallBack;
import com.baizhi.po.GroupsPO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@FeignClient(value = "GROUP", fallback = GroupFallBack.class)
public interface FeignGroup {
    @GetMapping("/groups/{id}")
    public GroupsPO queryById(@PathVariable Long id);
}
